
<div id="component-add">
    <form action="__APP__/Component/update" method="post">
        <input type="hidden" name="id" value="<{$list['id']}>" />
        组件名称：<input type="text" name="name"  value="<{$list['name']}>" /><br />
        别　　名：<input type="text" name="alias" value="<{$list['alias']}>" /><br />
        使用模型：<select name="model">
                         <switch name="list['model']">
                             <case value="Section" >
                                 <option value="Section" selected="selected">Section</option>
                                 <option value="Category">Category</option>
                                 <option value="Article">Article</option>
                             </case>
                             <case value="Category" >
                                 <option value="Section">Section</option>
                                 <option value="Category" selected="selected">Category</option>
                                 <option value="Article">Article</option>
                             </case>
                             <case value="Article" >
                                 <option value="Section">Section</option>
                                 <option value="Category">Category</option>
                                 <option value="Article" selected="selected">Article</option>
                             </case>
                             <case value="custom" >
                                 <option value="Section">Section</option>
                                 <option value="Category">Category</option>
                                 <option value="Article">Article</option>
                                 <option value="custom"selected="selected">custom</option>
                             </case>
                         </switch>
    </select>
        <br />
        使用操作：<select name="action">
        <eq name="list.action" value="view">
                <option value="view" selected="selected">view</option>
                <option value="custom">custom</option>
            <else/>
                <option value="view">view</option>
                <option value="custom" selected="selected">custom</option>
        </eq>

    </select>
        <br />
        <if condition="$list['published']" value="1">
            状　　态：<input type="radio" checked="checked" name="published" value="1" />开启
            <input type="radio" name="published" value="0" />关闭<br />
            <else/>
            状　　态：<input type="radio" name="published" value="1" />开启
            <input type="radio" name="published" value="0" checked="checked" />关闭<br />
        </if>

        排　　序：<input type="text" name="sort" value="<{$list['sort']}>" /><br />
        描　　述：<textarea name="description"><{$list['description']}></textarea><br />

        <input type="submit" class="submit" value="修改组件" />

    </form>
</div>